console.log($event);

if (!$event.first) {
  const widgets = this.getApiPage().getApiWidgetByAliasName('三维组件');
  var stream_url = this.getApiPage().getVariables().find(x => x.name == "stream_url").value;
  widgets.widgetObj.sullivan.closeAll(true);
  // 根据当前分页和分屏获取当前要展示的视频
  const start = ($event.obj.curr - 1) * window.videoCurrentGridSize;
  const end = start + window.videoCurrentGridSize;
  const currentVideos = window.videoCurrentSelectArea.slice(start, end);
  currentVideos.map((v, i) => {
    console.log(v);
    if (v.host) {
      return widgets.widgetObj.sullivan.addPlayerWidthData(`${window.location.origin}/streamUrl/api/v1/stream/rtc/play`, { stream_path: v.stream_path, equipmentCode: v.equipmentCode, ...v }, i)
    } else {
      return window.layer?.msg('摄像头未找到配置！');
    }
  })
}